import { axios as request  } from '@/utils/request'

export function getList({id}) {
  const companyId = id
  return request({
    url: `api/company/${companyId}/driver`,
    method: 'get'
  })
}

export function add({data}) {
  return request({
    url: 'api/company/driver',
    method: 'post',
    data
  })
}

export function edit({data}) {
  return request({
    url: 'api/company/driver',
    method: 'put',
    data
  })
}

export function del({id}) {
  return request({
    url: `api/company/driver/${id}`,
    method: 'delete'
  })
}